﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.Composition;
using DeepTalkRenderServiceLib;

namespace DeepTalkRenderShell.App.TalkRendering
{
    /// <summary>
    /// Dummy Rendering Code - just for debugging...
    /// </summary>
    [Export(typeof(IRenderTalk))]
    [ExportMetadata("Name", "RenderPrintToConsole")]
    class RenderPrintToConsole : IRenderTalk
    {
        public RenderPrintToConsole()
        {
            Console.WriteLine("Starting up debugging print-to-console");
        }

        public RenderMeetingTask.RenderResultsInfo RenderTalk(string agendaXML, int talkID)
        {
            Console.WriteLine("Rendering the talk " + talkID);

            return new RenderMeetingTask.RenderResultsInfo()
            {
                HowLongToNextUpdate = null,
                NumberOfTalks = 10,
                SizeOfRender = (float)4.0,
                Title = "no way title",
                MeetingStart = DateTime.Now,
                MeetingEnd = DateTime.Now
            };
        }
    }
}
